home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 1994 August / August CD.bin / Shareware / Games / Core War / Battle Programs / Standard / gemini < prev    next >
Text File  |  1989-07-18  |  459b  |  16 lines

  1. ; GEMINI copies itself forward about 100 cells
  2. ; and then jumps to the copy.
  3. ; GEMINI has required considerable modification
  4. ;  to run under Core War '89.  Jon Newman
  5. offset  equ 100
  6. source  dat 0,0
  7. dest    dat 0,source+offset
  8. loop             add #1,source
  9.                     add #1,dest
  10. start   mov @source,@dest
  11.                     cmp #last-source,source
  12.                     jmp loop,0
  13. done    mov #0,source+offset
  14.                     mov #source-dest+offset,dest+offset
  15. last                jmp start+offset,0
  16. end                 start